package com.lailai.entity;

import com.lailai.constant.Operator;
import com.lailai.service.Criterion;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author lgr
 * @Date 2025/9/22
 * @Email 983105834@qq.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SimpleExpression implements Criterion {
    private String property;
    private String propertyAlias;
    private Operator operator;
    private Object value;
    private String dataSource;
    private String dataSourceAlias;

    public SimpleExpression(String property, Operator operator, Object value, String dataSource) {
        this.property = property;
        this.operator = operator;
        this.value = value;
        this.dataSource = dataSource;
    }
}
